package com.pan.lianjia.entity;

import com.pan.crawler.entity.HouseInfo;

public class LianJiaHouse implements HouseInfo {

    private String title;
    private String url;
    private String houseTags;
    private String address;
    private String area;
    private String houseType;
    private String orderTags;
    private String price;

    @Override
    public String getTitleLine() {
        return "标题,链接,房屋标签,地址,面积,房屋类型,其他标签,价格\n";
    }

    @Override
    public String getCsvLine() {
        return title+","+url+","+houseTags+","+address+","+area+","+houseType+","+orderTags+","+price+"\n";
    }

    public String getTitle() {
        return title;
    }

    public LianJiaHouse setTitle(String title) {
        this.title = title;
        return this;
    }

    public String getUrl() {
        return url;
    }

    public LianJiaHouse setUrl(String url) {
        this.url = url;
        return this;
    }

    public String getHouseTags() {
        return houseTags;
    }

    public LianJiaHouse setHouseTags(String houseTags) {
        this.houseTags = houseTags;
        return this;
    }

    public String getAddress() {
        return address;
    }

    public LianJiaHouse setAddress(String address) {
        this.address = address;
        return this;
    }

    public String getArea() {
        return area;
    }

    public LianJiaHouse setArea(String area) {
        this.area = area;
        return this;
    }

    public String getHouseType() {
        return houseType;
    }

    public LianJiaHouse setHouseType(String houseType) {
        this.houseType = houseType;
        return this;
    }

    public String getOrderTags() {
        return orderTags;
    }

    public LianJiaHouse setOrderTags(String orderTags) {
        this.orderTags = orderTags;
        return this;
    }

    public String getPrice() {
        return price;
    }

    public LianJiaHouse setPrice(String price) {
        this.price = price;
        return this;
    }
}
